package com.sxt.websocket.consts;

/**
 * 全局常量类
 * @author HeJD
 * @date 2018年7月12日
 */
public class Const { 
   /**
	 * webSocket订阅频道枚举
	 */
	public enum Channel{
 
		AAA_CHANNEL(1,"/topic/AAA"),
		BBB_CHANNEL(2,"/topic/BBB");
 
		private final int code;
		private final String name;
 
		Channel(int code, String name) {
			this.code = code;
			this.name = name;
		}
		public String getName() {
			return name;
		}
	}
}
